package com.cjc.hotel.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value="com-cjc-hotel-server-entity-TAdmin")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_admin")
public class TAdmin {
    /**
     * 主键Id
     */
    @TableId(value = "admin_id", type = IdType.AUTO)
    @ApiModelProperty(value="主键Id")
    private Integer adminId;

    /**
     * 用户名
     */
    @TableField(value = "username")
    @ApiModelProperty(value="用户名")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    @ApiModelProperty(value="密码")
    private String password;
}